module.exports=function(sequelize,DataTypes){
	var Feed=sequelize.define("ttrss_feeds",{
	  id: {
	    type: DataTypes.INTEGER,
	    primaryKey:true
	  },
	  title: {
	    type: DataTypes.STRING
	  }
	},{timestamps: false})


	Feed.associate=function(models){
		Feed.hasMany(models.UserEntry,{
			foreignKey:"feed_id",
			targetKey:"id"
		})
	}

	return Feed;
}

